// pages/home/boxEvaluate.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    comment_list: [
      {
        id: 1,
        user_img: '/image/circle_head1.jpg',
        user_name: 'chinchin',
        content: '超级无敌漂亮超级无敌漂亮超级无敌漂亮超级无敌漂亮！！',
        com_img: [
          '/image/circle_head1.jpg',
          '/image/circle2.jpg',
          '/image/rb.jpg'
        ],
        com_img_len: 3,
        time: '2019-2-6'
      },
      {
        id: 1,
        user_img: '/image/circle_head3.jpg',
        user_name: '厦门厦门',
        content: '很漂亮！！！',
        com_img: [
          '/image/circle_head3.jpg'
        ],
        com_img_len: 1,
        time: '2019-1-6'
      },
      {
        id: 1,
        user_img: '/image/circle_head4.jpg',
        user_name: '海沧',
        content: '美美哒！',
        com_img: [],
        com_img_len: 0,
        time: '2018-12-6',
      },
      {
        id: 1,
        user_img: '/image/circle_head1.jpg',
        user_name: 'chinchin',
        content: '超级无敌漂亮超级无敌漂亮超级无敌漂亮超级无敌漂亮！！',
        com_img: [
          '/image/circle_head1.jpg',
          '/image/circle2.jpg',
          '/image/rb.jpg'
        ],
        com_img_len: 3,
        time: '2019-2-6'
      },
      {
        id: 1,
        user_img: '/image/circle_head3.jpg',
        user_name: '厦门厦门',
        content: '很漂亮！！！',
        com_img: [
          '/image/circle_head3.jpg'
        ],
        com_img_len: 1,
        time: '2019-1-6'
      },
      {
        id: 1,
        user_img: '/image/circle_head4.jpg',
        user_name: '海沧',
        content: '美美哒！',
        com_img: [],
        com_img_len: 0,
        time: '2018-12-6',
      }
    ],
    comment_num: 6
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options.id);
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  // 评论图片预览
  imgYu: function (e) {
    wx.previewImage({
      current: 'https://www.ai-quick.com/uploads/images/20190129/7223a22b7cdfa8db68327b81cac10b4e.jpg', // 当前显示图片的http链接
      urls: [
        "https://www.ai-quick.com/uploads/images/20190129/7223a22b7cdfa8db68327b81cac10b4e.jpg",
        "https://www.ai-quick.com/uploads/images/20190129/ba9ecdf129a90a28e8a1cb083ff08493.jpg",
        "https://www.ai-quick.com/uploads/images/20190129/3a126e7e213c8282255632a805a8f72a.jpg",
        "https://www.ai-quick.com/uploads/images/20190129/142094ef594bc1aee21b6a7940ca205c.jpg"
      ] // 需要预览的图片http链接列表
    })
  }
})